<?php

namespace App\Models;

use App\Models\CommonModel as Model;

class TicketModel extends Model
{
    const TYPE_TIME = 1;
    const TYPE_NORMAL = 0;

    const STATUS_NORMAL = 0;
    const STATUS_DELETED = 2;

    public $table = 'ticket';
    
    public $fillable = [
        'category_id',
        'city_id',
        'keywords',
        'code',
        'type',
        'start_time',
        'end_time',
        'valid_time',
        'status',
        'left_times',
        'use_limit',
        'price',
        'ticket_type',
        'city_name',
        'use_condition',
        'max_times',
        'bargin_condition',
        'name',
        'use_condition',
        'display_order',
        'payment',
    ];

    public $searchable = [
        'category_id',
        'city_id',
        'keywords',
        'start_time',
        'code',
        'type',
        'end_time',
        'valid_time',
        'status',
        'left_times',
        'use_limit',
        'price',
        'ticket_type',
        'city_name',
        'use_condition',
        'max_times',
        'bargin_condition',
        'name',
        'use_condition',
        'display_order',
        'payment',
    ];

    public $changeable = [
        'category_id',
        'city_id',
        'keywords',
        'code',
        'type',
        'start_time',
        'end_time',
        'valid_time',
        'status',
        'left_times',
        'use_limit',
        'price',
        'ticket_type',
        'city_name',
        'use_condition',
        'max_times',
        'bargin_condition',
        'name',
        'use_condition',
        'display_order',
        'payment',
    ];
}
